package com.juice.iot.sdk.listener;

import com.juice.iot.sdk.handler.PropSetHandler;
import org.eclipse.paho.client.mqttv3.IMqttMessageListener;
import org.eclipse.paho.client.mqttv3.MqttMessage;

import java.util.Map;

/**
 * Created by haonan on 2018/12/27
 */
public class PropSetListener implements IMqttMessageListener {

    private Map<String,PropSetHandler> handlerMap;

    public PropSetListener(Map<String, PropSetHandler> handlerMap) {
        this.handlerMap = handlerMap;
    }

    @Override
    public void messageArrived(String topic, MqttMessage message) {

    }

    public void setHandlerMap(Map<String, PropSetHandler> handlerMap) {
        this.handlerMap = handlerMap;
    }
}
